package com.runshu.newsmartark.mvp.model;


import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.UserInfoEntity;
import com.runshu.newsmartark.mvp.contract.GetUserListContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/7/29
 * @decs：
 */

public class GetUserListModel extends BaseModel implements GetUserListContract.Model {
    @Override
    public void getUserList(BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        super.initDataFromServer(ConstantUrl.GET_UserInfoList,builder.build(), UserInfoEntity.class, ResponseBean.RES_DATATYPE_BEANLIST,baseCallBack);

    }
}